<template>
  <!-- 关于 -->
  <div style="margin: 2%">
    <el-icon style="color: skyblue; font-size: 40px; padding: 1%"><WarningFilled /></el-icon>
    <span style="font-size: 20px">智能化养鱼</span>
    <div style="padding: 1%">
      <div>版本：v1.08.07.22 preview</div>
      <div>日期：2024-07-22</div>
      <div>内核版本：{{ Version }}</div>
      <el-button @click="func">打开调试工具</el-button>
      <el-button @click="GetNewJar">下载jar包</el-button>
      <el-button @click="GetNewExe">下载安装包</el-button>
      <el-button @click="GetNewDb">下载数据库</el-button>
      <!-- <div>node.js:16.20.0</div>
      <div>electron:28.1.1</div> -->
    </div>
  </div>
</template>

<script setup>
import { ref, onMounted } from 'vue'

const Version = ref(null)

onMounted(() => {
  getversion()
})
const getversion = () => {
  Version.value = window.api.getSystemVersion()
}
const func = async () => {
  window.electron.ipcRenderer.send('ping')
}
const GetNewJar = () => {
  window.location.href = 'https://xyd-tools.bj.bcebos.com/fdc-1.0.jar'
}
const GetNewExe = () => {
  window.location.href =
    'https://xyd-tools.bj.bcebos.com/%E6%B8%94%E5%9C%BA%E5%85%BB%E6%AE%96_v0.0.0.1.exe'
}
const GetNewDb = () => {}
</script>

<style>
</style>